﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using OpenGL4NET;

namespace WSCore
{
	public struct WSVertex
	{
		public WSVertex(float x, float y, float z)
		{
			X = x;
			Y = y;
			Z = z;
		}

		public float X;
		public float Y;
		public float Z;
	}

	public struct WSTex
	{
		public WSTex(float u, float v)
		{
			U = u;
			V = v;
		}
		public float U;
		public float V;
	}

	public struct WSColor
	{
		public WSColor(byte r, byte g, byte b, byte a)
		{
			R = r;
			G = g;
			B = b;
			A = a;
		}

		public byte R;
		public byte G;
		public byte B;
		public byte A;
	}

	public struct WSVertexColorTex
	{
		public WSVertex Vertex;
		public WSColor Color;
		public WSTex Tex;
	}

	public struct WSQuad
	{
		public WSQuad(bool nil)
		{
			LeftBottom = new WSVertexColorTex();
			LeftTop = new WSVertexColorTex();
			RightBottom = new WSVertexColorTex();
			RightTop = new WSVertexColorTex();
		}

		public WSVertexColorTex LeftBottom;
		public WSVertexColorTex LeftTop;
		public WSVertexColorTex RightTop;
		public WSVertexColorTex RightBottom;
	}
}
